from machine import Pin
import time

led = Pin(1, Pin.IN, Pin.PULL_DOWN)

prefix_count = 0
last_value = 0
while True:
    new_value = led.value()
    if new_value == 1:
        prefix_str = ' ' * (prefix_count % 20)
        print(f'{prefix_str}+++')
        prefix_count += 1

    if last_value == 1 and new_value == 0:
        print('Waiting cool down...')

        while led.value() == 1:
            time.sleep(0.1)

        time.sleep(3)

        while led.value() == 1:
            time.sleep(0.1)

        print('Come on now ----------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')

    last_value = new_value
    time.sleep(0.1)